package com.hotel.tv.repositories.auth.query;

import com.autumn.domain.repositories.DefaultEntityRepository;
import com.autumn.mybatis.mapper.annotation.MapperViewSelect;
import com.hotel.tv.entities.auth.query.HotelRoleByUserQuery;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-04-10 10:56
 **/
@Repository
@MapperViewSelect("SELECT a.id,a.sort_id,a.is_sys_role,b.user_id,a.name,a.is_default,a.summary," +
        "a.gmt_create,a.gmt_modified,a.user_type,a.organize_id"
        + " FROM sys_role AS a INNER JOIN sys_user_role AS b on a.id = b.role_id")
public interface HotelRoleByUserQueryRepository extends DefaultEntityRepository<HotelRoleByUserQuery> {

}
